function [newPos, SpNew] = shipLeeLee(graph, currentPos, lastPos, Sp, n_t, w_s)
%% Calculates the next ship's Position by algorithm described in Paper "The
%% Discrete Evasion Game with Three move lag". 
%& Only good for 3-lag and n=1
global xij;
i=Sp(1);
j=Sp(2);
p=xij(i,j);
newPos=shipFerguson(graph,currentPos,lastPos,p);

%Determine the new Sp
%if the ship moves backwards
if lastPos(1)==newPos 
       %already walked: tttts and than t --> S=1,1
      if j>1
           i=1;
           j=1;
      elseif (j==1) % only walked ttt and than an additiononal t
            if(i+1<n_t) 
                i=i+1;
            else
                i=n_t;
            end
      end
else % ship moves forward: an additional s 
        i=i;
        if(j+1<w_s)
            j=j+1;
        else
             j=w_s;
        end
end
SpNew(1)=i;
SpNew(2)=j;

end